﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace IPCPhotoEditor
{
    //报告鼠标位置
    public delegate void MouseLocationReportedEventHandler(Object sender, MouseLocationReportedEventArgs e);

    //报告浏览文件信息
    public delegate void BrowseFileInfoReportedEventHandler(Object sender, BrowseFileInfoReportedEventArgs e);

    //图像曲线更新事件
    public delegate void CurveUpdatedEventHandler(Object sender, CurveUpdatedEventArgs e);

    //报告浏览图像更新事件
    public delegate void BrowsedImageUpdatedEventHandler(Object sender, BrowsedImageUpdatedEventArgs e);

    /// <summary>
    /// 鼠标位置更新事件
    /// </summary>
    public class MouseLocationReportedEventArgs : EventArgs
    {
        public readonly Point Location;
        public MouseLocationReportedEventArgs(Point p)
        {
            Location = p;
        }
    }

    /// <summary>
    /// 浏览图像信息更新事件
    /// </summary>
    public class BrowseFileInfoReportedEventArgs : EventArgs
    {
        public readonly string FileInfo;
        public readonly string FileName;
        public BrowseFileInfoReportedEventArgs(string info, string fileName)
        {
            FileInfo = info;
            FileName = fileName;
        }
    }

    /// <summary>
    /// 浏览图像更新事件
    /// </summary>
    public class BrowsedImageUpdatedEventArgs : EventArgs
    {
        public readonly Bitmap NewImage;
        public BrowsedImageUpdatedEventArgs(Bitmap image)
        {
            NewImage = image;
        }
    }

    /// <summary>
    /// 曲线更新事件
    /// </summary>
    public class CurveUpdatedEventArgs : EventArgs
    {
        public CurveUpdatedEventArgs()
        {
            
        }
    }
}
